package com.wteam.dragon.shop.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author 陈晓辉
 * @Date 2020/7/7 19:57
 */
@Getter
@Setter
public class ProductVo implements Serializable {
    @TableId(type = IdType.AUTO)
    @Column(name = "id", type = MySqlTypeConstant.BIGINT, isKey = true, isNull = false,
            isAutoIncrement = true, comment = "自增id")
    private Long id;

    @NotNull(message = "商品类型不能为空")
    private Long productSortId;

    @NotNull(message = "商品类型名不能为空")
    private String productSortName;

    @NotNull(message = "商品名称不能为空")
    private String name;

    private String subhead;

    private String introduce;

    private String productSn;

    @NotNull(message = "售价不能为空")
    private BigDecimal price;

    @NotNull(message = "市场价不能为空")
    private BigDecimal originalPrice;

    private Integer stock;

    private String unit;

    private BigDecimal weight;

    private Long sort;

    private String album;

    private String detail;

    private Integer publishStatus;

    private Integer newStatus;

    private Integer recommendStatus;

    private Long brandId;

    private String brandName;

    private String brandNameEn;

    private String keywords;
}
